package com.istock.union.user.model;

import java.io.Serializable;
import java.util.Date;

public class LoginforInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * VARCHAR(24) 必填<br>
     * 
     */
    private String id;

    /**
     * VARCHAR(24)<br>
     * 租户编号
     */
    private String tenantCode;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 登录账号
     */
    private String loginName;

    /**
     * DECIMAL(5)<br>
     * 记录类型
     */
    private Integer logType;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 登录IP地址
     */
    private String ipaddr;

    /**
     * VARCHAR(255)<br>
     * 
     */
    private String loginLocation;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 浏览器类型
     */
    private String browser;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 操作系统
     */
    private String os;

    /**
     * TIMESTAMP(19)<br>
     * 操作时间
     */
    private Date operTime;

    /**
     * VARCHAR(255)<br>
     * 结果
     */
    private String result;

    /**
     * VARCHAR(24) 必填<br>
     * 获得 
     */
    public String getId() {
        return id;
    }

    /**
     * VARCHAR(24) 必填<br>
     * 设置 
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * VARCHAR(24)<br>
     * 获得 租户编号
     */
    public String getTenantCode() {
        return tenantCode;
    }

    /**
     * VARCHAR(24)<br>
     * 设置 租户编号
     */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode == null ? null : tenantCode.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 登录账号
     */
    public String getLoginName() {
        return loginName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 登录账号
     */
    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    /**
     * DECIMAL(5)<br>
     * 获得 记录类型
     */
    public Integer getLogType() {
        return logType;
    }

    /**
     * DECIMAL(5)<br>
     * 设置 记录类型
     */
    public void setLogType(Integer logType) {
        this.logType = logType;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 登录IP地址
     */
    public String getIpaddr() {
        return ipaddr;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 登录IP地址
     */
    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr == null ? null : ipaddr.trim();
    }

    /**
     * VARCHAR(255)<br>
     * 获得 
     */
    public String getLoginLocation() {
        return loginLocation;
    }

    /**
     * VARCHAR(255)<br>
     * 设置 
     */
    public void setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation == null ? null : loginLocation.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 浏览器类型
     */
    public String getBrowser() {
        return browser;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 浏览器类型
     */
    public void setBrowser(String browser) {
        this.browser = browser == null ? null : browser.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 操作系统
     */
    public String getOs() {
        return os;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 操作系统
     */
    public void setOs(String os) {
        this.os = os == null ? null : os.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 操作时间
     */
    public Date getOperTime() {
        return operTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 操作时间
     */
    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }

    /**
     * VARCHAR(255)<br>
     * 获得 结果
     */
    public String getResult() {
        return result;
    }

    /**
     * VARCHAR(255)<br>
     * 设置 结果
     */
    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tenantCode=").append(tenantCode);
        sb.append(", loginName=").append(loginName);
        sb.append(", logType=").append(logType);
        sb.append(", ipaddr=").append(ipaddr);
        sb.append(", loginLocation=").append(loginLocation);
        sb.append(", browser=").append(browser);
        sb.append(", os=").append(os);
        sb.append(", operTime=").append(operTime);
        sb.append(", result=").append(result);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LoginforInfo other = (LoginforInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTenantCode() == null ? other.getTenantCode() == null : this.getTenantCode().equals(other.getTenantCode()))
            && (this.getLoginName() == null ? other.getLoginName() == null : this.getLoginName().equals(other.getLoginName()))
            && (this.getLogType() == null ? other.getLogType() == null : this.getLogType().equals(other.getLogType()))
            && (this.getIpaddr() == null ? other.getIpaddr() == null : this.getIpaddr().equals(other.getIpaddr()))
            && (this.getLoginLocation() == null ? other.getLoginLocation() == null : this.getLoginLocation().equals(other.getLoginLocation()))
            && (this.getBrowser() == null ? other.getBrowser() == null : this.getBrowser().equals(other.getBrowser()))
            && (this.getOs() == null ? other.getOs() == null : this.getOs().equals(other.getOs()))
            && (this.getOperTime() == null ? other.getOperTime() == null : this.getOperTime().equals(other.getOperTime()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTenantCode() == null) ? 0 : getTenantCode().hashCode());
        result = prime * result + ((getLoginName() == null) ? 0 : getLoginName().hashCode());
        result = prime * result + ((getLogType() == null) ? 0 : getLogType().hashCode());
        result = prime * result + ((getIpaddr() == null) ? 0 : getIpaddr().hashCode());
        result = prime * result + ((getLoginLocation() == null) ? 0 : getLoginLocation().hashCode());
        result = prime * result + ((getBrowser() == null) ? 0 : getBrowser().hashCode());
        result = prime * result + ((getOs() == null) ? 0 : getOs().hashCode());
        result = prime * result + ((getOperTime() == null) ? 0 : getOperTime().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        return result;
    }
}